<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<h1>测试</h1>
<button onclick="back()">返回首页</button>
<button onclick="reload()">刷新</button>
<button onclick="replace()">替换</button>
<script type="text/javascript">
    function back() {
        history.go(-1);
    }
    function reload(){
        location.reload();//刷新
    }
    function replace(){
        location.replace("open.html");//替换
    }
</script>
</body>
</html>